#!/usr/bin/env bash
#sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
#sudo apt-get -y install openjdk-8-jdk
#sudo apt-get -y install tomcat8
###docker
sudo apt-get -y install python-pip 
sudo apt-get -y install python-dev
#sudo pip install -U fig
sudo pip install docker-compose
sudo apt-get install docker docker.io
#FATA[0000] Get http:///var/run/docker.sock/v1.18/images/json: dial unix /var/run/docker.sock: permission denied. Are you trying to connect to a TLS-enabled daemon without TLS?
sudo usermod -aG docker vagrant
curl -fsSL https://get.docker.com/ | sh
sudo apt-get upgrade docker-ce
###maven
docker volume create maven-repo
echo -e "mvn(){\n docker run --rm -v maven-repo:/root/.m2/repository -v \$(pwd):/www -w /www \$2 --entrypoint mvn maven:3-jdk-8-alpine \$1 \n}" | cat >> /home/vagrant/.profile